<?php
!defined('P_W') && exit('Forbidden');
require_once MODE . '/base/frontcontroller.php';
/**
 * 过期数据清理页面
 */
class ExpiredController extends FrontController {

	var $_seopage;
	var $_defaultSeo;
	var $_seoname;

	function run() {
		global $timestamp,$house_expiredtime;
		require_once R_P.'admin/cache.php';
		if ($timestamp<$house_expiredtime) exit; 
		$expiredService = House::loadService("expiredService");
		$expiredService->dealExpireds();
		
		setConfig('house_expiredtime', $timestamp+600, null, true);
		updatecache_conf('house', true);
		exit;
	}
	function _after(){
		houseSeoSettings($this->_seopage,$this->_defaultSeo,$this->_seoname);
	}
}